local questitem = inventory:getItemCount("itemname")
if questitem > 9 then
Do something
End